import { Request } from "express";
import { dataSource } from "../dataSource";
import { Repository, SelectQueryBuilder, UpdateResult, ObjectLiteral } from "typeorm";
/**
 * 基本服务
 */
export abstract class BaseService<T extends ObjectLiteral> {

  protected readonly repository: Repository<T>;
  constructor(entity: any) {
    this.repository = dataSource.getRepository(entity);
  }

}

